import request from '@/utils/request'

// 分页查下项目信息
export function QueryProjectPage(params) {
  return request({
    url: '/Api/ProjectInfo/QueryPage',
    method: 'get',
    params,
  })
}

// 项目详情-包含的配置信息
export function GetProjectConfigs(params) {
  return request({
    url: '/Api/ProjectInfo/GetProjectConfigs',
    method: 'get',
    params,
  })
}

// 添加项目信息
export function AddProjectInfo(data) {
  return request({
    url: '/Api/ProjectInfo/AddProjectInfo',
    method: 'post',
    data,
  })
}

// 编辑项目信息
export function EditProjectInfo(data) {
  return request({
    url: '/Api/ProjectInfo/EditProjectInfo',
    method: 'post',
    data,
  })
}

// 删除项目信息
export function DeleteProjectInfo(data) {
  return request({
    url: '/Api/ProjectInfo/DeleteProjectInfo',
    method: 'post',
    data,
  })
}

// 分页获取回收站项目信息
export function QueryRecycleProjectInfo(params) {
  return request({
    url: '/Api/ProjectInfo/QueryRecycleProjectInfo',
    method: 'get',
    params,
  })
}

// 系统管理员回收站删除项目信息
export function SysDelete(data) {
  return request({
    url: '/Api/ProjectInfo/SysDelete',
    method: 'post',
    data,
  })
}

// 还原项目信息
export function Reduction(data) {
  return request({
    url: '/Api/ProjectInfo/Reduction',
    method: 'post',
    data,
  })
}

// 重置秘钥
export function ResetSecretKey(data) {
  return request({
    url: '/Api/ProjectInfo/ResetSecretKey',
    method: 'post',
    data,
  })
}
// 生成json
export function GenerateConfigFileInfo(data) {
  return request({
    url: '/Api/ProjectInfo/GenerateConfigFileInfo',
    method: 'post',
    data,
  })
}
